package com.googlecode.stockhamster.client.swing;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class SwapListener implements ActionListener {

	private SwingClient parent;
	private String name;
	
	public SwapListener(SwingClient parent, String name) {
		this.parent = parent;
		this.name = name;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		parent.card.show(parent.contentPanel, name);
	}

}
